package com.tangyuan.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tangyuan.model.activity.EnrollRecord;
import com.tangyuan.model.activity.TicketType;
import com.tangyuan.model.activity.TicketTypeRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: enroll_record
 * @Author: jeecg-boot
 * @Date:   2024-03-20
 * @Version: V1.0
 */
@Mapper
public interface EnrollRecordMapper extends BaseMapper<EnrollRecord> {

    List<EnrollRecord> getEnrollListByUserId(@Param("userId") Long userId, @Param("activityId") Long activityId);

    List<TicketType> getEnrollTicketTypeName(@Param("userId") Long userId, @Param("activityId") Long activityId);

    List<TicketTypeRecord> selectTicketTypeName(Long activityId);

    EnrollRecord getByEnrollId(Long enrollId);
}
